strs = input("请输入一行字符")
str_num = 0
space_num = 0
figue_num = 0
other_num = 0
for str in strs:
    if str.isalpha():
        str_num += 1
    elif str.isdigit():
        figue_num += 1
    elif str == ' ':
        space_num += 1
    else:
        other_num += 1
print("英文字母个数：", str_num)
print("空格个数：", space_num)
print("数字个数：", figue_num)
print("其它字符个数：", other_num)
